<script setup lang='ts'>
import { ref } from 'vue';

const flag = ref(false)
</script>

<template>
  <button @click="flag = true">显示</button>
  <SealMessage v-if="flag">登录成功</SealMessage>


  <!-- 动态创建组件:  this.$message.success -->
  <!-- 标签的写法类似  el-dialog  visible="true/false" -->
</template>

<style scoped>

</style>
